package io.renren.modules.sys.service.impl;

import io.renren.modules.sys.entity.SongEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SongRecommendDao;
import io.renren.modules.sys.entity.SongRecommendEntity;
import io.renren.modules.sys.service.SongRecommendService;



@Service("songRecommendService")
public class SongRecommendServiceImpl implements SongRecommendService {
	@Autowired
	private SongRecommendDao songRecommendDao;
	
	@Override
	public SongRecommendEntity queryObject(Long id){
		return songRecommendDao.queryObject(id);
	}
	
	@Override
	public List<SongEntity> queryList(Map<String, Object> map){
		return songRecommendDao.querySongList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return songRecommendDao.queryTotal(map);
	}
	
	@Override
	public void save(SongRecommendEntity songRecommend){
		songRecommendDao.save(songRecommend);
	}
	
	@Override
	public void update(SongRecommendEntity songRecommend){
		songRecommendDao.update(songRecommend);
	}
	
	@Override
	public void delete(Long id){
		songRecommendDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		songRecommendDao.deleteBatch(ids);
	}

    @Override
    public List<SongEntity> queryListAll(Map<String, Object> params) {
        return songRecommendDao.queryListAll(params);
    }

    @Override
    public void deleteAll() {
        songRecommendDao.deleteAll();
    }

    @Override
    public void insertBatch(List<SongRecommendEntity> list) {
        songRecommendDao.insertBatch(list);
    }
}
